package CanvaWeb.CanvaWeb.Service;

import CanvaWeb.CanvaWeb.Repository.WordRepository;
import CanvaWeb.CanvaWeb.pojo.Word;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WordService {
    @Autowired
    private WordRepository wordRepository;

    public List<Word> getRandomWords(int count) {
        return wordRepository.findRandomWords(count);
    }
}
